package com.library.librarybackend.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author 平
 * @description 注册表单
 * @since 2025-09-20 21:26
 */
@Data
public class RegisterFormDTO {

    @NotBlank
    @Schema(description = "账号")
    private String account;

    @NotBlank
    @Schema(description = "密码")
    private String password;

    @NotNull
    @Schema(description = "角色(0:root、1:admin、2:user)")
    private Integer role;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "性别(0:女、1:男)")
    private Integer gender;

}
